package com.ftg.learn.framework.spring.chapter04.local.annotation;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.DependsOn;
import org.springframework.context.annotation.Primary;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * 产品分类
 *
 * @author 布衣
 */
@Data
@Component("pt")
@Primary
@Order(1)
public class ProductType implements Type {

    @Value("食品")
    private String name;

}
